﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CollegeWebsite.Models.FeedBack>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Feed Back</h2>

    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>

        <fieldset>
            <div class="editor-label">
               Your name:
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.FromName) %>
                <%= Html.ValidationMessageFor(model => model.FromName) %>
            </div>
            
            <div class="editor-label">
               Your Email:
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.FromEmail) %>
                <%= Html.ValidationMessageFor(model => model.FromEmail) %>
            </div>
            
            <div class="editor-label">
             Subject
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.FeedSubject) %>
                <%= Html.ValidationMessageFor(model => model.FeedSubject) %>
            </div>
            
            <div class="editor-label">
           Content:
            </div>
            <div class="editor">
                <%= Html.TextAreaFor(model => model.FeedContent,10,50,null) %>
                <%= Html.ValidationMessageFor(model => model.FeedContent) %>
            </div>
            <% if (Model.FeedBackRespond != null)
            { %>
            <div class="editor-label">
                <%=Html.LabelFor(model => model.FeedBackRespond)%>
            </div>
            <div class="editor-field">
                <%=Html.TextBoxFor(model => model.FeedBackRespond)%>
                <%=Html.ValidationMessageFor(model => model.FeedBackRespond)%>
            </div>
            <% } %>
       
            <p>
                <input type="submit" value="Send" />   <%= Html.ActionLink("Cancel", "Index","Home") %>
            </p>
        </fieldset>

    <% } %>

  

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptIncludePlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="HeaderContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="MenuContentPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content6" ContentPlaceHolderID="Sidebar1ContentPlaceHolder" runat="server">
</asp:Content>

